﻿<div id="info_receiptbook" class="largebloc2">
	<h2><?php echo __('receiptbook').' : '.$receiptbook['0']['Receiptbook']['name']; ?></h2>
	<?php 
		$urlPath = Router::getPaths();
	?>
	<table>
    <form action="<?php echo $urlPath['base'] . '/' .$project_name.'/'.$project_id.'/receiptbooks/view/'.$receiptbook['0']['Receiptbook']['id']; ?>" enctype="multipart/form-data" method="post">
		<?php //echo $form->create('Receiptbook', array('action' => 'modify')); ?>
		<?php echo $form->hidden('Receiptbook.project_name', array ('value' => $project_name)); ?>
		<?php echo $form->hidden('Receiptbook.project_id', array ('value' => $project_id)); ?>
		<tr>
			<td>
				<?php echo $form->input('Receiptbook.name', array('error'=>'Please supply a name for this receiptbook.', 'label'=>__('name', true), 'value'=>$receiptbook['0']['Receiptbook']['name'])); ?>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $form->input('Receiptbook.amount', array('error'=>'Please supply an amount for this receiptbook.', 'label'=>__('amount', true), 'value'=>$receiptbook['0']['Receiptbook']['amount'])); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo $form->submit(__('modify', true)); ?></td>
			<td><?php echo $html->link(__('cancel', true), ''); ?></td>
		</tr>
		<?php echo $form->end(); ?>
	</table>
</div>